/*
 * TiposComunes.h
 */

#ifndef TIPOSCOMUNES_H_
#define TIPOSCOMUNES_H_

#define FALSE 0
#define TRUE !FALSE
#define CHR_FIN_CADENA '\0'

// Prefijos respuetas HTTP
#define HTTP_SUCCESFUL_PREFIX '2'
#define HTTP_REDIRECTION_PREFIX '3'
#define HTTP_CLIENT_ERROR_PREFIX '4'
#define HTTP_SERVER_ERROR_PREFIX '5'

// Codigos de respuestas HTTP
#define HTTP_OK "200"
#define HTTP_ACCEPTED "202"
#define HTTP_NO_RESPONSE "204"
#define HTTP_MOVED "301"
#define HTTP_FOUND "302"
#define HTTP_BAD_REQUEST "400"
#define HTTP_UNAUTHORIZED "401"
#define HTTP_FORBIDDEN "403"
#define HTTP_NOT_FOUND "404"
#define HTTP_SERVER_ERROR "500"
#define HTTP_NOT_IMPLEMENTED "501"
#define HTTP_SERVICE_OVERLOADED "502"

#endif /* TIPOSCOMUNES_H_ */
